package cn.xm.pet.mapper;

import cn.xm.pet.domain.Product;
import cn.xm.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xm
 * @since 2022-11-03
 */
public interface ProductMapper extends BaseMapper<Product> {

    List<Product> findByIds(List<Long> ids);

    void offsale(List<Long> onsaleIds);

    void onsale(List<Long> onsaleIds);

    Product findDetailByProductId(Long id);
}
